package com.device.api.config;

import com.ctg.ag.sdk.biz.AepDeviceCommandClient;
import com.ctg.ag.sdk.biz.AepDeviceManagementClient;
import com.ctg.ag.sdk.biz.AepProductManagementClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class WingConfig {


    final static private String appKey = "4zNVg1iTzt1";
    final static private String appSecret = "GnylhIAdDr";

    @Bean
    public AepDeviceCommandClient aepDeviceCommandClient () {
        return AepDeviceCommandClient.newClient()
                .appKey(appKey)
                .appSecret(appSecret)
                .build();
    }

    @Bean
    public AepProductManagementClient aepProductManagementClient () {
        return AepProductManagementClient.newClient()
                .appKey(appKey).appSecret(appSecret)
                .build();
    }

    @Bean
    public AepDeviceManagementClient aepDeviceManagementClient() {
        return AepDeviceManagementClient.newClient()
                .appKey(appKey).appSecret(appSecret)
                .build();
    }

}
